package cn.gemiman.daoyi.module.netty.model;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

@Data
@Accessors(chain = true)
public class NettySessionInfo {
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 终端类型
     */
    private Integer terminal;

    // @Schema(description = "用户类型，参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer userType;

    // @Schema(description = "用户信息", example = "{\"nickname\": \"道一\"}")
    private Map<String, String> userInfo;

    // @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long tenantId;

    // @Schema(description = "授权范围的数组", example = "user_info")
    private List<String> scopes;
}
